package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.CorpOrganization;
import com.voltmao.persistent.model.CorpOrganizationCriteria;

import java.util.List;
import java.util.Map;

public interface CorpOrganizationMapper {
    int countByExample(CorpOrganizationCriteria example);

    int deleteByExample(CorpOrganizationCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(CorpOrganization record);

    int insertSelective(CorpOrganization record);

    List<CorpOrganization> selectByExample(CorpOrganizationCriteria example);

    CorpOrganization selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") CorpOrganization record, @Param("example") CorpOrganizationCriteria example);

    int updateByExample(@Param("record") CorpOrganization record, @Param("example") CorpOrganizationCriteria example);

    int updateByPrimaryKeySelective(CorpOrganization record);

    int updateByPrimaryKey(CorpOrganization record);

    CorpOrganization selectByExampleForOne(CorpOrganizationCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(CorpOrganizationCriteria example);

    List<Map<String, Object>> selectMapByExample(CorpOrganizationCriteria example);

    //自定义方法
    List<Map<String, Object>> selectMapUserByExample(CorpOrganizationCriteria example);
}